<script>
    import SelectCharacter from "../atom/SelectCharacter.svelte";
    import SelectCharaterDetail from "../atom/SelectCharaterDetail.svelte";
    let selected_index = 0;
</script>

<div class="head">
    <div>主菜单</div>
</div>
<div class="new-game">
    <div class="main">
        <div class="main-head">
            <SelectCharacter  bind:selected_index={selected_index}/>
            <hr class="hr">
        </div>
        <div class="main-body">
            <SelectCharaterDetail bind:selected_index={selected_index} />
        </div>
    </div>
</div>

<style lang="less">
  .hr {
    border: 0;
    height: 1px;
    width: 100%;
    margin: 10px 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));
  }

  .new-game {
    width: 1000px !important;
    text-align: left;
  }

  .head {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 10px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;

  }
</style>